home *** CD-ROM | disk | FTP | other *** search
- Path: news1.radix.net!spp
- From: spp@syrinx.hideout.com (Stephen P Potter)
- Newsgroups: comp.lang.misc,comp.lang.perl.misc,comp.lang.tcl,comp.lang.c,comp.lang.java
- Subject: Re: Readable Perl (was: Re: Relative Speed of Perl vs. Tcl vs. C)
- Date: 16 Feb 1996 05:13:42 GMT
- Organization: RadixNet Internet Services
- Message-ID: <SPP.96Feb16001342@syrinx.hideout.com>
- References: <4e3a2u$eoa@wcap.centerline.com> <4fncgf$96e@solutions.solon.com>
- <JTV2J.96Feb12142743@mamba.cs.virginia.edu>
- <ukd97hwzkc.fsf_-_@linda.teleport.com>
- <4g0drdINN167@keats.ugrad.cs.ubc.ca>
- Reply-To: spp@pencom.com
- NNTP-Posting-Host: dialin23.annex1.radix.net
- In-reply-to: c2a192@ugrad.cs.ubc.ca's message of 15 Feb 1996 14:58:53 -0800
-
- In article <4g0drdINN167@keats.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
- None of the above, bud.
-
- I find this readable
-
- for x in 1 2 3 4 5 6 7 8 9 10 ; do
- echo "I can count to" $x
- done
-
- followed by, in second place:
-
- x=1
- while [ ! "$x" = "11" ] ; do
- echo "I can count to" $x
- : $(( x += 1 ))
- done
-
- ...and third place:
-
- ...
- movl $1, %edx
- loop: pushl %edx
- movl $message, %eax
- pushl %eax
- call _printf
- inc %edx
- cmpl $10, %edx
- jae loop
- ...
- message .ascii "I can count to %d\n\0"
-
- Ummm... oh forget it. It isn't worth going there.
-
- -spp
- --
- Stephen P Potter Pencom Systems Administration Beaching It
- spp@psa.pencom.com Pager: 1-800-759-8888, 547-9561 Work: 703-860-2222
- "I don't care whether people actually like Perl, just so long as they *think*
- they like it... ;-)" -Larry Wall
-